package com.syh.jn.scm.domain.operation.entity.system;

import com.syh.core.ddd.domain.AbstractSimpleAggregate;
import com.syh.jn.scm.dto.operation.system.loginLog.LoginLogSto;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class LoginLog extends AbstractSimpleAggregate<Long> {

	public LoginLog() {

	}

	public LoginLog(LoginLogSto sto) {
		this.loginAccount=sto.getLoginAccount();
		this.loginName = sto.getLoginName();
		this.terminalType = sto.getTerminalType();
		this.accountType = sto.getAccountType();
		this.ip = sto.getIp();
		this.createTimeStamp = System.currentTimeMillis();
	}


	private String loginAccount;

	private String loginName;

	private String terminalType;

	private String accountType;

	private String ip;
}
